/*
 * @Descripttion:
 * @version:
 * @Author: caiailing
 * @Date: 2023-03-29 14:42:43
 * @LastEditors:
 * @LastEditTime: 2023-04-04 17:27:35
 */
// 加载弹框
let loadingCount = 0
// 显示弹框
export function showLoading(isLoading: boolean) {
  if (isLoading) {
    uni.showLoading({
      title: '加载中'
    })
    loadingCount = loadingCount + 1
  }
}
// 隐藏弹框
export function hideLoading() {
  loadingCount = loadingCount - 1
  if (loadingCount === 0) {
    uni.hideLoading()
  }
}
